package cn.melonlib.aap.user.model.entity;

import cn.melonlib.cores.commons.model.anno.MelonEntityId;
import cn.melonlib.cores.commons.model.enums.IdType;
import cn.melonlib.cores.commons.model.enums.IdValueType;
import cn.melonlib.cores.commons.model.support.number_id.MelonLibLongIdEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper = true)
@Entity(name = "Administrator")
@Table(name = "user_administrator")
@ModelComment("运营商管理账户")
@MelonEntityId(type = IdType.SNOW_FLAKE,IdValueType = IdValueType.LONG)
public class Administrator extends MelonLibLongIdEntity {

    @ModelComment("账户编号")
    private String code;

    @ModelComment("账户名称")
    private String name;

    @ModelComment("账号权限")
    private Long permissions;
}
